package dao

import (
	"zg3zy9/inits"
	"zg3zy9/interface/models"
)

func Find(mobile string) models.User {
	var login models.User
	err := inits.DB.Debug().Where("mobile =  ?", mobile).Find(&login).Error
	if err != nil {
		return models.User{}
	}
	return login
}
